package com.arpa.wms.mapper;

import com.arpa.wms.domain.dto.CountingDTO;
import com.arpa.wms.domain.entity.Counting;
import com.arpa.wms.domain.vo.CountingItemVO;
import com.arpa.wms.domain.vo.CountingVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 盘点单 Mapper 接口
 * @author jinss
 * @date 2020-08-28 11:15:31
 **/
public interface CountingMapper extends BaseMapper<Counting> {

    /**
     * 查询列表
     * @param countingDTO
     * @return
     */
    List<CountingVO> queryList(CountingDTO countingDTO);

    List<String> queryByGoodsCode(@Param("list")List<String> list);

    /**
     * 查询合计,包含总数
     * @param countingDTO
     * @return
     */
    CountingVO queryListSum(CountingDTO countingDTO);

     /**
      *  @author: Allen chen
      *  @Date: 2020/10/22 16:02
      *  @Description: 通过code查询任务对应的明细信息
      */
    List<CountingItemVO> queryTaskDetailByCode(CountingDTO countingDTO);
}
